package com.qst.yunpan.dao;

import com.qst.yunpan.entity.Share;
import com.qst.yunpan.entity.ShareExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ShareMapper {
    long countByExample(ShareExample example);

    int deleteByExample(ShareExample example);

    int deleteByPrimaryKey(Integer shareid);

    int insert(Share record);

    int insertSelective(Share record);

    List<Share> selectByExample(ShareExample example);

    Share selectByPrimaryKey(Integer shareid);

    int updateByExampleSelective(@Param("record") Share record, @Param("example") ShareExample example);

    int updateByExample(@Param("record") Share record, @Param("example") ShareExample example);

    int updateByPrimaryKeySelective(Share record);

    int updateByPrimaryKey(Share record);

    //自定义
    Share queryShareFile(Share share) throws Exception;

    //取消文件分享
    void updateCancelShare(@Param("shareUrl") String url, @Param("filePath") String filePath,@Param("status") byte status)throws Exception;




}